#ifndef ADDFRIENDITEM_H
#define ADDFRIENDITEM_H

#include <QWidget>
#include <QString>

#include "message.h"

namespace Ui {
class AddFriendItem;
}

class AddFriendItem : public QWidget
{
    Q_OBJECT

public:
    explicit AddFriendItem(QWidget *parent = nullptr);
    ~AddFriendItem();

    QString username() const;
    void setUsername(const QString &newUsername);

    QString userId() const;
    void setUserId(const QString &newUserId);

signals:
    void signal_friendRequest(Message);

private slots:
    void on_pushButton_add_clicked();

private:
    Ui::AddFriendItem *ui;

    QString m_username;
    QString m_userId;
};

#endif // ADDFRIENDITEM_H
